<?php


namespace Part25_ResponsibilityChainModel\Code1;

/**
 * 抽象同事类
 */
abstract class Colleague
{
    /**
     * @var Mediator
     */
    protected $mediator;

    /**
     * 构造方法，得到中介者对象
     * @param $mediator Mediator
     */
    public function __construct($mediator)
    {
        $this->mediator = $mediator;
    }
}